import request from '@/utils/request'

export default {
  appearList(params) {
    return request({
      url: '/v1/appearList',
      method: 'get',
      params
    })
  },
  getOne(id) {
    return request({
      url: `/v1/appear/${id}`,
      method: 'get'
    })
  },
  update(data) {
    return request({
      url: '/v1/appearUpdate',
      method: 'post',
      data
    })
  },
  create(data) {
    return request({
      url: '/v1/appearAdd',
      method: 'post',
      data
    })
  },
  archives(id) {
    return request({
      url: `/v1/appearArchive/${id}`,
      method: 'get'
    })
  },
  delete(id) {
    return request({
      url: `/v1/appearDel/${id}`,
      method: 'get'
    })
  },
  append(data) {
    return request({
      url: '/v1/appearAppend',
      method: 'post',
      data
    })
  },
  remove(data) {
    return request({
      url: '/v1/appearRemove',
      method: 'post',
      data
    })
  },
  review(data) {
    return request({
      url: '/v1/appearReview',
      method: 'post',
      data
    })
  },
  same(data) {
    return request({
      url: '/v1/appearSame',
      method: 'post',
      data
    })
  }
}
